﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
namespace _3
{
    class Program
    {
        static void Main(string[] args)
        {
           /* string s = "asd";
            string a = "sad";
            Console.WriteLine(string.Compare(s,a));*/
            /*int []a=new int[7]{1,3,2,5,6,7,4};
            Array.Sort(a);
            for (int i = 0; i < 7; i++)
            {
                Console.WriteLine(a[i]);
            }*/
            ArrayList list1 = new ArrayList(10);
            int[] a = new int[4] { 1, 2, 3, 4 };
            ArrayList list2 = new ArrayList(a);
            for (int i = 0; i < list1.Count; i++)
            {
                list1.Add(i);
            }
            foreach (int j in list2)
            {
                Console.Write(j+" ");
            }
        }
    }
}
